import { 
    Entity, 
    PrimaryGeneratedColumn, 
    Column, 
    CreateDateColumn, 
    UpdateDateColumn 
} from 'typeorm';

@Entity({ name: 'setting_setting' })
export class Setting {
    @PrimaryGeneratedColumn({ 
        type: 'int', 
        name: 'setting_id',
        comment: '设置id'
    })
    settingId: number;

    @Column({ 
        type: 'int', 
        default: 0,
        comment: 'favicon文件id'
    })
    faviconId: number;

    @Column({ 
        type: 'int', 
        default: 0,
        comment: 'logo文件id'
    })
    logoId: number;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '名称'
    })
    name: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '标题'
    })
    title: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '关键词'
    })
    keywords: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '描述'
    })
    description: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '备案号'
    })
    icp: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '版权'
    })
    copyright: string;

    @Column({ 
        type: 'int', 
        default: 0,
        comment: '公众号二维码文件id'
    })
    offiId: number;

    @Column({ 
        type: 'int', 
        default: 0,
        comment: '小程序码文件id'
    })
    miniId: number;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '地址'
    })
    address: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '电话'
    })
    tel: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '传真'
    })
    fax: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '手机'
    })
    mobile: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '邮箱'
    })
    email: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: '微信'
    })
    wechat: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: 'QQ'
    })
    qq: string;

    @Column({ 
        type: 'varchar', 
        length: 127, 
        default: '',
        comment: 'SMTP服务器'
    })
    emailHost: string;

    @Column({ 
        type: 'varchar', 
        length: 7, 
        default: 'ssl',
        comment: 'SMTP协议'
    })
    emailSecure: string;

    @Column({ 
        type: 'varchar', 
        length: 7, 
        default: '',
        comment: 'SMTP端口'
    })
    emailPort: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: 'SMTP账号'
    })
    emailUsername: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: 'SMTP密码'
    })
    emailPassword: string;

    @Column({ 
        type: 'varchar', 
        length: 255, 
        default: '',
        comment: 'SMTP名称'
    })
    emailSetfrom: string;

    @Column({ 
        type: 'int', 
        default: 0,
        comment: '添加用户id'
    })
    createUid: number;

    @Column({ 
        type: 'int', 
        default: 0,
        comment: '修改用户id'
    })
    updateUid: number;

    @CreateDateColumn({ 
        name: 'create_time',
        comment: '添加时间'
    })
    createTime: Date;

    @UpdateDateColumn({ 
        name: 'update_time',
        comment: '修改时间'
    })
    updateTime: Date;

    @Column({ 
        type: 'varchar', 
        length: 1000, 
        nullable: true,
        comment: '统计代码'
    })
    statistics: string;

    @Column({ 
        type: 'varchar', 
        length: 256, 
        nullable: true,
        comment: '站长推送api'
    })
    zhanzhangapi: string;
}